{% extends 'base-user.html' %}
{% load static %}
{% block toplink %}
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-4.6.2-dist/css/bootstrap.min.css' %}">
{% endblock toplink %}
{% block user_content %}
    
<h3 class="common_title2">收货地址</h3>
<div class="site_con">
	<dl>
		
		{% for item in data   %}
			<dd>{{ item.addr }}</dd>
		{% empty %}<dd>没有默认收货地址</dd>
		{% endfor %}

	</dl>					
</div>
<h3 class="common_title2">编辑地址</h3>
<div class="site_con">
	<form method="post">
		{% csrf_token %}
		<div class="form_group">
			<label>收件人：</label>
			<input type="text" name="receiver">
		</div>
		<div class="form_group form_group2">
			<label>详细地址：</label>
			<textarea class="site_area" name="addr"></textarea>
		</div>
		<div class="form_group">
			<label>手机：</label>
			<input type="text" name="phone">
		</div>
		<input type="submit" name="" value="提交" class="info_submit">
	</form>
    {% if error %}
        <div class="alert alert-danger" role="alert">{{ error }}</div>
    {% endif %}
</div>
{% endblock user_content %}








